package thread;

public  class JoinThread extends Thread {
    static  int i = 0;


    public static void main(String[] args) throws InterruptedException {
        JoinThread joinThread = new JoinThread();
        joinThread.start();
        joinThread.join();
        System.out.println(i);
    }
    @Override
    public void run() {
        for (int a = 0;a<10000;a++){
            i++;
        }
    }
}
